package com.kevin.core;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

@Data
@AllArgsConstructor
/**
 * 定义消息头对象
 * 魔术2byte
 * 序列化算法1byte
 * 消息类型1byte
 * 消息id 8byte
 * 消息长度4byte
 */
public class Header implements Serializable {

    private short magic;

    private byte serialtype;

    private byte reqType;

    private long sessionId;

    private int length;
}
